package com.a3dweijing.wetouch2.bean;

import com.a3dweijing.wetouch2.R;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/3/30. 订单实体类
 */

public class PendingPaymentMsg extends ResultMsg
{
    private List<OrderListBean> orderList;
    
    public List<OrderListBean> getOrderList()
    {
        return orderList;
    }
    
    public void setOrderList(List<OrderListBean> orderList)
    {
        this.orderList = orderList;
    }
    
    public static String getTypeName(int i)
    {
        switch (i)
        {
            case 0:
                return "全部订单";
            case 1:
                return "待付款";
            case 2:
                return "待发货";
            case 3:
                return "待收货";
            case 4:
                return "已完成";
            case 5:
                return "已完成";
            case 6:
                return "退款中";
            case 7:
                return "已退款";
            case 8:
                return "退款被拒";
        }
        return null;
    }

    public static String getOperableName(int viewid)
    {
        switch (viewid)
        {
            case R.id.refund:
                return "申请退款";
            case R.id.delivergoods:
                return "提醒发货";
            case R.id.look_logistics:
                return "查看物流";
            case R.id.confirm:
                return "确认收货";
            case R.id.cancel_order:
                return "取消订单";
            case R.id.pay:
                return "付款";
        }
        return null;
    }
}
